<?php
/**
 * @desc 商品行程数据层
 * @author kevin.wang
 * @date 2015-01-01 12:00:00
 */
class DailyTrip extends Base
{
	//数据表
	protected $table = 'pert_daily_trip';
	//获取商品分类
	public function getDailyTrip($goods_id)  
    {
		 $table = $this->table;
		 $filed = "`daily_trip_id`,`trip_name`,`goods_id`,`hotal`,`hotal_start`,`food`,`detail`,`hotal_image`,`trip_image`,`guide`,`feature`,`traffic`,`spot`,`trip_pro`,`buy_tips`";
		 $sql = "select {$filed} from `{$table}` where `delete_flag` = 0 and `goods_id` = :goods_id";
		 return $this->select_table($sql, array(':goods_id' => $goods_id), Base::QUERY_ALL);
    }
}
